<template>
	<yb-appear
	:style="{height: dataSync.length > 0 ? '' : height ? height + 'px' : Util.unitpixel(perchHeight)}"
	target="yb-scroller"
	@appear="onAppear">
		<view class="yb-flex" class="yb-virtual-list-item-content" ref="ybVirtualListItemContent">
			<slot></slot>
		</view>
	</yb-appear>
</template>

<script>
	export default {
		data () {
			return {
				perchHeight: 0,
				height: 0
			}
		},
		methods: {
			initOptions ({perchHeight}) {
				this.perchHeight = perchHeight
			},
			onAppear () {
				console.log('appear');
			}
		}
	}
</script>

<style>
</style>